Calculus in Coinductive Form
نویسندگان
چکیده
Coinduction is often seen as a way of implementing innnite objects 8, 44. Since real numbers are typical innnite objects, it may not come as a surprise that calculus, when presented in a suitable way, is permeated by coinductive reasoning. What is surprising is that mathematical techniques, recently developed in the context of computer science, seem to be shedding a new light on some basic methods of calculus. We i n troduce a coinductive formalization of elementary calculus that can be used as a tool for symbolic computation, and geared towards computer algebra and theorem proving. So far, we have c o vered parts of ordinary diierential and diierence equations, Taylor series, Laplace transform and the basics of the operator calculus. Our point of departure is the observation that the algebraic structure of streams, given by the equations heada :: = a 1 taila :: = 2 head :: tail = 3 captures much of calculus. Given an analytic function f, deene headf = f0 tailf = f 0 a :: f = x 7 ! a + Z x 0 f Equation 3 now expresses the so-called Fundamental Theorem of Calculus, whereas equations 2 and 1 normalize the integral with respect to the subintegral function and the interval of integration. 1 Reapplying equation 3 yields the Taylor Maclaurin expansion Unfolding the above deenition of ::, which amounts to iterated integration, one nally gets fx = f0 + f 0 0x + + f n 0x n =n! + The idea of innnitely applying 3 is formally captured by the notion of a stream coalgebra. The set of innnite sequences forms a nal stream coal-gebra. Taylor expansions are then obtained using the unique homomorphism from the stream coal-gebra of analytic functions. From another point of view, a :: f is the unique solution of the diierential equation g 0 = f with the initial value g0 = a. The above derivation of Taylor series now leads to the usual power series method for solving diierential equations 2, Solving it amounts to running a corecursive program , which outputs the stream of Taylor coee-cients corresponding, in this case, to f = sin. Following these ideas, we i n troduce in sections 1 and 2 a formal setting for studying and implementing analytic structures by coalgebraic methods. Section 3 proceeds from our stream algebras 1 This example may be suggested by Hoare's …
منابع مشابه
Call-by-Value and Call-by-Name Dual Calculi with Inductive and Coinductive Types
This paper extends the dual calculus with inductive types and coinductive types. The paper first introduces a non-deterministic dual calculus with inductive and coinductive types. Besides the same duality of the original dual calculus, it has the duality of inductive and coinductive types, that is, the duality of terms and coterms for inductive and coinductive types, and the duality of their re...
متن کاملCoinductive Techniques in Infinitary Lambda-Calculus
The main aim of this paper is to promote a certain informal but rigorous style of doing coinductive proofs, similar to inductive proofs as commonly done by mathematicians. For this purpose we develop a theory which may serve as a reasonably direct justification for coinductive proofs written in this informal style, i.e., converting an informal coinductive proof into a non-coinductive argument m...
متن کاملA Coinductive Confluence Proof for Infinitary Lambda-Calculus
We present a new coinductive proof of confluence of Böhm reduction in infinitary lambda-calculus. The proof is simpler than previous proofs of this result. The technique of the proof is new, i.e., it is not merely a coinductive reformulation of any earlier proofs.
متن کاملA tutorial on coinductive stream calculus and signal flow graphs
This paper presents an application of coinductive stream calculus to signal flow graphs. In comparison to existing approaches, which are usually based on Z-transforms (a discrete version of Laplace transforms) and transfer functions, the model presented in these notes is very elementary. The formal treatment of flow graphs is interesting because it deals with two fundamental phenomena in the th...
متن کاملCentrum Voor Wiskunde En Informatica Reportrapport Behavioural Differential Equations: a Coinductive Calculus of Streams, Automata, and Power Series Behavioural Diierential Equations: a Coinductive Calculus of Streams, Automata, and Power Series
Streams, automata and languages, and formal power series are viewed coalgebraically. In summary , this amounts to supplying these sets with a deterministic automaton structure, which has the universal property of being nal. Finality then forms the basis for both deenitions and proofs by coinduction, the coalgebraic counterpart of induction. Coinductive deenitions take the shape of what we h a v...
متن کاملBehavioural Differential Equations: a Coinductive Calculus of Streams, Automata, and Power Series Behavioural Diierential Equations: a Coinductive Calculus of Streams, Automata, and Power Series
Streams, (automata and) languages, and formal power series are viewed coalgebraically. In summary , this amounts to supplying these sets with a deterministic automaton structure, which has the universal property of being nal. Finality then forms the basis for both deenitions and proofs by coinduction, the coalgebraic counterpart of induction. Coinductive deenitions take the shape of what we hav...
متن کامل